package com.ty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (Master)表实体类
 *
 * @author makejava
 * @since 2020-12-01 22:17:51
 */
@Data
@TableName("master")
public class Master extends Model<Master> {
    //技师主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //姓名
    private String name;
    //性别
    private String sex;
    //年龄
    private String age;
    //账号
    private String account;
    //密码
    private String password;
    //所属部门id
    private String phone;

    private MasterAddress masterAddress;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}